package concurrensy.sin_array_sumator;

public class OneThreadSinArraySumator implements SinArraySumator {
	
	@Override
	public double arraySum(int parameter) {
		double result = 0;
		for(int count = 0; count <= parameter; count++){
			result += Math.sin(count);
			result += Math.sin(-count);
		}
		return result;
	}
}
